<link type="text/css" rel="stylesheet" href="http://www.12301.cc/tpl/publish_coupons/css/publish_coupons.css" />
<div class="coupon_case">
	<ul id="tabHead" class="tabHead clearfix">
        <li class="profit">领券情况</li>
    </ul>
	<ul class="coupon_num_list">
		<li class="Total_coupon">
			<span class="coupon_span_">券总数：</span>
			<span class="coupon_num_"><?=$lists['total']==-1 ? '不限' : $lists['total']?></span>
		</li>
		<li class="has">
			<span class="coupon_span_">已领：</span>
			<span class="coupon_num_"><?=count($lists['lists'])?></span>
		</li>
		<li class="use">
			<span class="coupon_span_">已使用：</span>
			<span class="coupon_num_"><?=$lists['used']?></span>
		</li>
	</ul>
	<table class="tbcoupon"  border="0" cellpadding="0" cellspacing="0">
		<thead> 
			<tr>
				<th class="couname">领券用户</th>
				<th class="coutime">领取时间</th>
				<th class="usetime_">有效期</th>
				<th class="coutsty">状态</th>
				<th class="coutsty">订单号</th>
			</tr>
		</thead>
        <?php foreach($lists['lists'] as $list):?>
		<tbody class="tbody" id="tab"> 
			<tr>    
				<td class="couname"><?=$list['dname']?></td>
				<td class="coutime"><?=$list['create_time']?></td>
				<td class="usetime_"><?=$list['start_date']?>至<?=$list['end_date']?></td>
				<td class="coutsty"><?=$status_list[$list['dstatus']]?></td>
				<td class="coutsty">
                    <a target="_blank" href="orderView.html?from=sale&ordernum=<?=$list['ordernum']?>&type=A"><?=$list['ordernum']?></a>
                </td>
			</tr>
		</tbody>
        <?php endforeach;?>
	</table>
</div>?=$list['use_time']?></td>
			</tr>
		</tbody>
        <?php endforeach;?>
	</table>
</div>